(setq user-mail-address "basimple@gmail.com")
(setq user-full-name "Yongmun Kim")
(setq smtpmail-smtp-server "smtp.gmail.com")
(setq mail-user-agent 'message-user-agent)
(setq message-send-mail-function 'message-smtpmail-send-it)
(setq-default tab-width 4)

(setq font-use-system-font nil)
(setq x-stretch-cursor t)
(setq-default line-spacing 0)

(require 'cl)

(setq basimplemacs-dir (file-name-directory
			(or load-file-name buffer-file-name)))
(setq conf-dir (concat basimplemacs-dir "conf/"))
(setq plugins-dir (concat basimplemacs-dir "plugins/"))

(setq default-directory basimplemacs-dir)
(normal-top-level-add-subdirs-to-load-path)

(require 'utils)

;; configure for buildin libraries
(require 'conf-frame)
(conf-frame)
(require 'conf-subr)
(require 'conf-font)
(require 'conf-startup)
(require 'conf-tool-bar)
(require 'conf-key)
(require 'conf-files)
(require 'conf-paren)
(require 'conf-scroll-bar)
(require 'conf-ido)
(require 'conf-package)

;; configure for external libraries
(require 'conf-auto-install)
(require 'conf-unicad)
(require 'conf-zencoding)
(require 'conf-auto-complete)
(require 'conf-company)
(require 'conf-color-theme)
(require 'conf-lofime)
(require 'conf-emacsd-tile)
(require 'conf-anything)
(require 'conf-highlight-symbol)
(require 'conf-ediff)
;; (require 'conf-multi-project)
(require 'conf-autopair)
;; (require 'conf-lusty-explorer)
(require 'conf-android-mode)

;; for language
(require 'conf-lisp)

;; (require 'conf-auto-install)
;; (condition-case data
;;     (let ((default-directory "~/.emacs.d/"))
;;       (load-file "./plugins/conf/conf-startup1.el"))
;;   (file-error 'notfound))

;; (if (file-exists-p
;;      (setq conf-dir 

;; (show-paren-mode t)


;; (add-to-list 'load-path "/Users/basimple/.emacs.d/")
;; (require 'emacsd-tile)
;; (setq show-paren-style 'mixed)
;; ;; (add-hook 'kill-emacs-hook (lambda () (window-configuration-to-register)))

(provide 'init)
